<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>供给列表 - 社交供给平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #eef0ff;
            --secondary: #3f37c9;
            --accent: #4cc9f0;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --danger: #f72585;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #f5f7fa;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .search-container {
            max-width: 600px;
            width: 100%;
        }
        
        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.75rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--primary);
            border-radius: 3px;
        }
        
        /* 筛选面板样式 */
        .filters-panel {
            background-color: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 1.5rem;
        }
        
        .filter-section {
            margin-bottom: 1.5rem;
        }
        
        .filter-title {
            font-weight: 600;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .filter-checkbox {
            display: none;
        }
        
        .filter-label {
            background-color: var(--light);
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-checkbox:checked + .filter-label {
            background-color: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .price-range {
            padding: 0 0.5rem;
        }
        
        .price-inputs {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .price-input {
            flex: 1;
            position: relative;
        }
        
        .price-input input {
            width: 100%;
            padding: 0.75rem 0.75rem 0.75rem 2rem;
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            font-size: 0.9rem;
        }
        
        .price-input::before {
            content: '¥';
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .slider-container {
            padding: 1rem 0;
        }
        
        .form-range {
            width: 100%;
        }
        
        .filter-actions {
            display: flex;
            justify-content: space-between;
            padding-top: 1rem;
            border-top: 1px solid var(--light-gray);
        }
        
        .btn-reset {
            background-color: white;
            color: var(--gray);
            border: 1px solid var(--light-gray);
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-reset:hover {
            border-color: var(--gray);
        }
        
        .btn-apply {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-apply:hover {
            background-color: var(--secondary);
        }
        
        /* 排序和视图控制 */
        .results-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .results-count {
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .sort-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .sort-label {
            font-size: 0.95rem;
            color: var(--gray);
        }
        
        .sort-select {
            padding: 0.5rem;
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            font-size: 0.95rem;
            background-color: white;
        }
        
        .view-controls {
            display: flex;
            gap: 0.5rem;
        }
        
        .view-btn {
            background-color: white;
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            padding: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .view-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 供给卡片样式 */
        .supply-card {
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin-bottom: 1.5rem;
        }
        
        .supply-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        
        .supply-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--dark);
            text-decoration: none;
        }
        
        .author-name:hover {
            color: var(--primary);
        }
        
        .post-time {
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .supply-content {
            padding: 1rem;
        }
        
        .supply-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
            color: var(--dark);
        }
        
        .supply-description {
            color: var(--gray);
            margin-bottom: 1rem;
            font-size: 0.95rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .supply-price {
            font-weight: 600;
            color: var(--danger);
            margin-bottom: 1rem;
        }
        
        .supply-meta {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .supply-actions {
            display: flex;
            justify-content: space-around;
            padding: 0.75rem 0;
            border-top: 1px solid var(--light-gray);
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--gray);
            background: none;
            border: none;
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            border-radius: 6px;
        }
        
        .action-btn:hover {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        /* 网格布局 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .grid-supply-card {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .image-container {
            width: 100%;
            overflow: hidden;
            position: relative;
        }
        
        .single-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .supply-card:hover .single-image {
            transform: scale(1.05);
        }
        
        .multi-image {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 3px;
            height: 200px;
        }
        
        .multi-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .multi-image .image-count {
            position: absolute;
            bottom: 5px;
            right: 5px;
            background-color: rgba(0,0,0,0.7);
            color: white;
            font-size: 0.8rem;
            padding: 2px 6px;
            border-radius: 4px;
        }
        
        /* 列表布局 */
        .list-layout {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .list-supply-card {
            display: flex;
            flex-direction: row;
            height: auto;
        }
        
        .list-image-container {
            width: 200px;
            flex-shrink: 0;
        }
        
        .list-supply-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        /* 紧凑布局 */
        .compact-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1rem;
        }
        
        .compact-supply-card {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .compact-image {
            width: 100%;
            height: 140px;
            object-fit: cover;
        }
        
        .compact-supply-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
            color: var(--dark);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .compact-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        /* 无图供给样式 */
        .no-image-card {
            border-left: 4px solid var(--primary);
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .list-supply-card {
                flex-direction: column;
            }
            
            .list-image-container {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .results-controls {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .section-title {
                font-size: 1.5rem;
            }
            
            .filter-options {
                gap: 0.5rem;
            }
            
            .filter-label {
                padding: 0.4rem 0.8rem;
                font-size: 0.85rem;
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                order: 3;
                margin-top: 1rem;
                width: 100%;
                max-width: none;
            }
            
            .price-inputs {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .filter-actions {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .btn-reset, .btn-apply {
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3 px-4">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-store"></i>
                SupplyHub
            </a>
            
            <div class="search-container mx-3">
                <div class="input-group">
                    <span class="input-group-text bg-transparent border-right-0">
                        <i class="fas fa-search text-gray-400"></i>
                    </span>
                    <input type="text" class="form-control border-left-0" placeholder="搜索供给、商品或服务...">
                </div>
            </div>
            
            <div class="d-flex align-items-center gap-3">
                <button class="btn btn-outline-primary">
                    <i class="fas fa-plus me-1"></i> 发布供给
                </button>
                <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 38px; height: 38px; object-fit: cover;">
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="container py-5">
        <h1 class="section-title">供给列表</h1>
        
        <div class="row">
            <!-- 左侧筛选面板 -->
            <div class="col-lg-3">
                <div class="filters-panel sticky-top" style="top: 20px;">
                    <div class="filter-section">
                        <div class="filter-title">
                            <i class="fas fa-tags"></i> 分类
                        </div>
                        <div class="filter-options">
                            <input type="checkbox" id="cat-1" class="filter-checkbox" checked>
                            <label for="cat-1" class="filter-label">
                                <i class="fas fa-check d-none"></i> 全部
                            </label>
                            
                            <input type="checkbox" id="cat-2" class="filter-checkbox">
                            <label for="cat-2" class="filter-label">
                                <i class="fas fa-check d-none"></i> 数码产品
                            </label>
                            
                            <input type="checkbox" id="cat-3" class="filter-checkbox">
                            <label for="cat-3" class="filter-label">
                                <i class="fas fa-check d-none"></i> 家居用品
                            </label>
                            
                            <input type="checkbox" id="cat-4" class="filter-checkbox">
                            <label for="cat-4" class="filter-label">
                                <i class="fas fa-check d-none"></i> 服装配饰
                            </label>
                            
                            <input type="checkbox" id="cat-5" class="filter-checkbox">
                            <label for="cat-5" class="filter-label">
                                <i class="fas fa-check d-none"></i> 服务技能
                            </label>
                            
                            <input type="checkbox" id="cat-6" class="filter-checkbox">
                            <label for="cat-6" class="filter-label">
                                <i class="fas fa-check d-none"></i> 二手闲置
                            </label>
                            
                            <input type="checkbox" id="cat-7" class="filter-checkbox">
                            <label for="cat-7" class="filter-label">
                                <i class="fas fa-check d-none"></i> 创意作品
                            </label>
                            
                            <input type="checkbox" id="cat-8" class="filter-checkbox">
                            <label for="cat-8" class="filter-label">
                                <i class="fas fa-check d-none"></i> 食品饮料
                            </label>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <div class="filter-title">
                            <i class="fas fa-money-bill"></i> 价格范围
                        </div>
                        <div class="price-range">
                            <div class="price-inputs">
                                <div class="price-input">
                                    <input type="number" placeholder="最低" min="0">
                                </div>
                                <div class="price-input">
                                    <input type="number" placeholder="最高" min="0">
                                </div>
                            </div>
                            
                            <div class="slider-container">
                                <input type="range" class="form-range" min="0" max="10000" value="5000" id="priceSlider">
                                <div class="d-flex justify-content-between text-sm text-gray">
                                    <span>¥0</span>
                                    <span>¥5000</span>
                                    <span>¥10000+</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <div class="filter-title">
                            <i class="fas fa-clock"></i> 发布时间
                        </div>
                        <div class="filter-options">
                            <input type="radio" name="time-filter" id="time-1" class="filter-checkbox" checked>
                            <label for="time-1" class="filter-label">
                                <i class="fas fa-check d-none"></i> 全部时间
                            </label>
                            
                            <input type="radio" name="time-filter" id="time-2" class="filter-checkbox">
                            <label for="time-2" class="filter-label">
                                <i class="fas fa-check d-none"></i> 今天
                            </label>
                            
                            <input type="radio" name="time-filter" id="time-3" class="filter-checkbox">
                            <label for="time-3" class="filter-label">
                                <i class="fas fa-check d-none"></i> 本周
                            </label>
                            
                            <input type="radio" name="time-filter" id="time-4" class="filter-checkbox">
                            <label for="time-4" class="filter-label">
                                <i class="fas fa-check d-none"></i> 本月
                            </label>
                            
                            <input type="radio" name="time-filter" id="time-5" class="filter-checkbox">
                            <label for="time-5" class="filter-label">
                                <i class="fas fa-check d-none"></i> 半年内
                            </label>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <div class="filter-title">
                            <i class="fas fa-image"></i> 内容类型
                        </div>
                        <div class="filter-options">
                            <input type="checkbox" id="type-1" class="filter-checkbox" checked>
                            <label for="type-1" class="filter-label">
                                <i class="fas fa-check d-none"></i> 全部类型
                            </label>
                            
                            <input type="checkbox" id="type-2" class="filter-checkbox">
                            <label for="type-2" class="filter-label">
                                <i class="fas fa-check d-none"></i> 有图片
                            </label>
                            
                            <input type="checkbox" id="type-3" class="filter-checkbox">
                            <label for="type-3" class="filter-label">
                                <i class="fas fa-check d-none"></i> 纯文字
                            </label>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <div class="filter-title">
                            <i class="fas fa-star"></i> 热门程度
                        </div>
                        <div class="filter-options">
                            <input type="radio" name="popular-filter" id="popular-1" class="filter-checkbox" checked>
                            <label for="popular-1" class="filter-label">
                                <i class="fas fa-check d-none"></i> 全部
                            </label>
                            
                            <input type="radio" name="popular-filter" id="popular-2" class="filter-checkbox">
                            <label for="popular-2" class="filter-label">
                                <i class="fas fa-check d-none"></i> 热门
                            </label>
                            
                            <input type="radio" name="popular-filter" id="popular-3" class="filter-checkbox">
                            <label for="popular-3" class="filter-label">
                                <i class="fas fa-check d-none"></i> 最新发布
                            </label>
                            
                            <input type="radio" name="popular-filter" id="popular-4" class="filter-checkbox">
                            <label for="popular-4" class="filter-label">
                                <i class="fas fa-check d-none"></i> 最多评论
                            </label>
                        </div>
                    </div>
                    
                    <div class="filter-actions">
                        <button class="btn-reset">
                            <i class="fas fa-sync-alt me-1"></i> 重置筛选
                        </button>
                        <button class="btn-apply">
                            <i class="fas fa-filter me-1"></i> 应用筛选
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 右侧供给列表 -->
            <div class="col-lg-9">
                <!-- 结果控制和排序 -->
                <div class="results-controls">
                    <div class="results-count">找到 <strong>156</strong> 个相关供给</div>
                    
                    <div class="d-flex align-items-center gap-2">
                        <div class="sort-controls">
                            <span class="sort-label">排序方式：</span>
                            <select class="sort-select">
                                <option value="recommend">推荐排序</option>
                                <option value="newest">最新发布</option>
                                <option value="price-low">价格从低到高</option>
                                <option value="price-high">价格从高到低</option>
                                <option value="popular">热门程度</option>
                            </select>
                        </div>
                        
                        <div class="view-controls">
                            <button class="view-btn active" data-view="grid" title="网格视图">
                                <i class="fas fa-th"></i>
                            </button>
                            <button class="view-btn" data-view="list" title="列表视图">
                                <i class="fas fa-list"></i>
                            </button>
                            <button class="view-btn" data-view="compact" title="紧凑视图">
                                <i class="fas fa-th-large"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 供给列表 -->
                <div class="supplies-container grid-layout">
                    <!-- 单图供给 -->
                    <div class="supply-card grid-supply-card">
                        <div class="supply-header">
                            <img src="https://picsum.photos/100/100?random=10" alt="用户头像" class="author-avatar">
                            <div class="author-info">
                                <a href="#" class="author-name">数码爱好者</a>
                                <div class="post-time">2小时前</div>
                            </div>
                        </div>
                        <div class="image-container">
                            <img src="https://picsum.photos/600/400?random=20" alt="无线耳机" class="single-image">
                        </div>
                        <div class="supply-content">
                            <h3 class="supply-title">全新无线降噪耳机，未拆封低价转让</h3>
                            <div class="supply-price">¥899</div>
                            <p class="supply-description">最新款无线降噪耳机，朋友送的礼物，自己已经有一个了，全新未拆封，低价转让给需要的朋友。</p>
                            <div class="supply-meta">
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i>
                                    <span>328</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-comment"></i>
                                    <span>24</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-heart"></i>
                                    <span>56</span>
                                </div>
                            </div>
                        </div>
                        <div class="supply-actions">
                            <button class="action-btn">
                                <i class="fas fa-thumbs-up"></i>
                                <span>点赞</span>
                            </button>
                            <button class="action-btn">
                                <i class="fas fa-comment"></i>
                                <span>评论</span>
                            </button>
                            <button class="action-btn">
                                <i class="fas fa-heart"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                    
                    <!-- 多图供给 -->
                    <div class="supply-card grid-supply-card">
                        <div class="supply-header">
                            <img src="https://picsum.photos/100/100?random=11" alt="用户头像" class="author-avatar">
                            <div class="author-info">
                                <a href="#" class="author-name">家居达人</a>
                                <div class="post-time">昨天 15:30</div>
                            </div>
                        </div>
                        <div class="image-container">
                            <div class="multi-image">
                                <img src="https://picsum.photos/300/300?random=21" alt="北欧风格沙发">
                                <img src="https://picsum.photos/300/300?random=22" alt="沙发细节">
                                <img src="https://picsum.photos/300/300?random=23" alt="沙发搭配">
                                <img src="https://picsum.photos/300/300?random=24" alt="客厅全景">
                                <div class="image-count">4图</div>
                            </div>
                        </div>
                        <div class="supply-content">
                            <h3 class="supply-title">北欧风格三人沙发，9成新，自提</h3>
                            <div class="supply-price">¥1200</div>
                            <p class="supply-description">去年购买的北欧风格三人沙发，因搬家转让，9成新，无破损，舒适耐用，适合小户型客厅。</p>
                            <div class="supply-meta">
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i>
                                    <span>512</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-comment"></i>
                                    <span>47</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-heart"></i>
                                    <span>89</span>
                                </div>
                            </div>
                        </div>
                        <div class="supply-actions">
                            <button class="action-btn">
                                <i class="fas fa-thumbs-up"></i>
                                <span>124</span>
                            </button>
                            <button class="action-btn">
                                <i class="fas fa-comment"></i>
                                <span>评论</span>
                            </button>
                            <button class="action-btn">
                                <i class="fas fa-heart"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                    
                    <!-- 无图供给 -->
                    <div class="supply-card grid-supply-card no-image-card">
                        <div class="supply-header">
                            <img src="https://picsum.photos/100/100?random=12" alt="用户头像" class="author-avatar">
                            <div class="author-info">
                                <a href="#" class="author-name">编程达人</a>
                                <div class="post-time">3天前</div>
                            </div>
                        </div>
                        <div class="supply-content">
                            <h3 class="supply-title">提供Python编程一对一教学服务，零基础入门</h3>
                            <div class="supply-price">¥150/小时</div>
                            <p class="supply-description">计算机专业硕士，5年编程经验，提供Python编程一对一在线教学，适合零基础入门，课程内容包括基础语法、数据分析、爬虫开发等。</p>
                            <div class="supply-meta">
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i>
                                    <span>763</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-comment"></i>
                                    <span>68</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-heart"></i>
                                    <span>125</span>
                                </div>
                            </div>
                        </div>
                        <div class="supply-actions">
                            <button class="action-btn">
                                <i class="fas fa-thumbs-up"></i>
                                <span>点赞</span>
                            </button>
                            <button class="action-btn">
                                <i class="fas fa-comment"></i>
                                <span>评论</span>
                            </button>
                            <button class="action-btn">
                                <i class="fas fa-heart"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                    
                    <!-- 列表布局供给 -->
                    <div class="supply-card list-supply-card">
                        <div class="list-image-container image-container">
                            <img src="https://picsum.photos/400/400?random=25" alt="手工编织包" class="single-image">
                        </div>
                        <div class="list-supply-content">
                            <div class="supply-header">
                                <img src="https://picsum.photos/100/100?random=13" alt="用户头像" class="author-avatar">
                                <div class="author-info">
                                    <a href="#" class="author-name">手工爱好者</a>
                                    <div class="post-time">4天前</div>
                                </div>
                            </div>
                            <div class="supply-content">
                                <h3 class="supply-title">手工编织复古风包包，独一无二的设计</h3>
                                <div class="supply-price">¥299</div>
                                <p class="supply-description">纯手工编织的复古风包包，采用优质棉线，耗时一周完成，每个都是独一无二的设计，适合搭配各种风格的服装，尺寸约25x18cm。</p>
                                <div class="supply-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-eye"></i>
                                        <span>924</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-comment"></i>
                                        <span>87</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-heart"></i>
                                        <span>215</span>
                                    </div>
                                </div>
                            </div>
                            <div class="supply-actions">
                                <button class="action-btn">
                                    <i class="fas fa-thumbs-up"></i>
                                    <span>186</span>
                                </button>
                                <button class="action-btn">
                                    <i class="fas fa-comment"></i>
                                    <span>评论</span>
                                </button>
                                <button class="action-btn">
                                    <i class="fas fa-heart"></i>
                                    <span>收藏</span>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 紧凑布局供给 -->
                    <div class="supply-card compact-supply-card">
                        <div class="image-container">
                            <img src="https://picsum.photos/600/400?random=26" alt="原创摄影作品" class="compact-image">
                        </div>
                        <div class="supply-content">
                            <h3 class="compact-supply-title">原创风景摄影作品，限量版画出售</h3>
                            <div class="supply-price">¥199起</div>
                            <div class="compact-meta">
                                <div>
                                    <i class="fas fa-user me-1"></i>摄影爱好者
                                </div>
                                <div>
                                    <i class="fas fa-heart me-1"></i>356
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 另一个无图供给 -->
                    <div class="supply-card grid-supply-card no-image-card">
                        <div class="supply-header">
                            <img src="https://picsum.photos/100/100?random=15" alt="用户头像" class="author-avatar">
                            <div class="author-info">
                                <a href="#" class="author-name">语言达人</a>
                                <div class="post-time">2周前</div>
                            </div>
                        </div>
                        <div class="supply-content">
                            <h3 class="supply-title">提供英语翻译服务，专业八级，价格优惠</h3>
                            <div class="supply-price">¥150/千字</div>
                            <p class="supply-description">英语专业八级，3年翻译经验，可提供文档翻译、口译、校对等服务，领域包括商务、法律、技术等，价格优惠，欢迎咨询。</p>
                            <div class="supply-meta">
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i>
                                    <span>632</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-comment"></i>
                                    <span>45</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-heart"></i>
                                    <span>98</span>
                                </div>
                            </div>
                        </div>
                        <div class="supply-actions">
                            <button class="action-btn">
                                <i class="fas fa-thumbs-up"></i>
                                <span>点赞</span>
                            </button>
                            <button class="action-btn">
                                <i class="fas fa-comment"></i>
                                <span>评论</span>
                            </button>
                            <button class="action-btn">
                                <i class="fas fa-heart"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 分页 -->
                <nav class="mt-5">
                    <ul class="pagination justify-content-center">
                        <li class="page-item disabled">
                            <a class="page-link" href="#" tabindex="-1">上一页</a>
                        </li>
                        <li class="page-item active"><a class="page-link" href="#">1</a></li>
                        <li class="page-item"><a class="page-link" href="#">2</a></li>
                        <li class="page-item"><a class="page-link" href="#">3</a></li>
                        <li class="page-item">
                            <a class="page-link" href="#">...</a>
                        </li>
                        <li class="page-item"><a class="page-link" href="#">8</a></li>
                        <li class="page-item">
                            <a class="page-link" href="#">下一页</a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 筛选选项交互
            const filterCheckboxes = document.querySelectorAll('.filter-checkbox');
            
            filterCheckboxes.forEach(checkbox => {
                checkbox.addEventListener('change', function() {
                    const label = this.nextElementSibling;
                    const checkIcon = label.querySelector('i');
                    
                    // 处理分类"全部"选项的特殊逻辑
                    if (this.id === 'cat-1') {
                        if (this.checked) {
                            document.querySelectorAll('[id^="cat-"]:not(#cat-1)').forEach(cat => {
                                cat.checked = false;
                                cat.nextElementSibling.querySelector('i').classList.add('d-none');
                            });
                        }
                    } else if (this.id.startsWith('cat-')) {
                        // 当选择其他分类时，取消"全部"的选中状态
                        document.getElementById('cat-1').checked = false;
                        document.getElementById('cat-1').nextElementSibling.querySelector('i').classList.add('d-none');
                    }
                    
                    // 处理内容类型"全部类型"选项的特殊逻辑
                    if (this.id === 'type-1') {
                        if (this.checked) {
                            document.querySelectorAll('[id^="type-"]:not(#type-1)').forEach(type => {
                                type.checked = false;
                                type.nextElementSibling.querySelector('i').classList.add('d-none');
                            });
                        }
                    } else if (this.id.startsWith('type-')) {
                        // 当选择其他内容类型时，取消"全部类型"的选中状态
                        document.getElementById('type-1').checked = false;
                        document.getElementById('type-1').nextElementSibling.querySelector('i').classList.add('d-none');
                    }
                    
                    // 更新选中图标
                    if (this.checked) {
                        checkIcon.classList.remove('d-none');
                    } else {
                        checkIcon.classList.add('d-none');
                    }
                });
            });
            
            // 视图切换
            const viewBtns = document.querySelectorAll('.view-btn');
            const suppliesContainer = document.querySelector('.supplies-container');
            
            viewBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // 更新按钮活跃状态
                    viewBtns.forEach(b => b.classList.remove('active'));
                    this.classList.add('active');
                    
                    // 切换视图布局
                    const view = this.getAttribute('data-view');
                    suppliesContainer.className = 'supplies-container';
                    
                    if (view === 'grid') {
                        suppliesContainer.classList.add('grid-layout');
                    } else if (view === 'list') {
                        suppliesContainer.classList.add('list-layout');
                    } else if (view === 'compact') {
                        suppliesContainer.classList.add('compact-layout');
                    }
                });
            });
            
            // 重置筛选按钮
            const resetBtn = document.querySelector('.btn-reset');
            resetBtn.addEventListener('click', function() {
                // 重置所有复选框
                filterCheckboxes.forEach(checkbox => {
                    // 只选中"全部"选项
                    const isAllOption = checkbox.id === 'cat-1' || checkbox.id === 'time-1' || 
                                      checkbox.id === 'type-1' || checkbox.id === 'popular-1';
                    
                    checkbox.checked = isAllOption;
                    
                    // 更新图标
                    const label = checkbox.nextElementSibling;
                    const checkIcon = label.querySelector('i');
                    
                    if (isAllOption) {
                        checkIcon.classList.remove('d-none');
                    } else {
                        checkIcon.classList.add('d-none');
                    }
                });
                
                // 重置价格输入
                document.querySelectorAll('.price-input input').forEach(input => {
                    input.value = '';
                });
                
                // 重置价格滑块
                document.getElementById('priceSlider').value = 5000;
                
                // 重置排序选择
                document.querySelector('.sort-select').value = 'recommend';
            });
            
            // 应用筛选按钮
            const applyBtn = document.querySelector('.btn-apply');
            applyBtn.addEventListener('click', function() {
                // 收集选中的筛选条件
                const selectedFilters = [];
                
                filterCheckboxes.forEach(checkbox => {
                    if (checkbox.checked && !checkbox.id.endsWith('-1')) {
                        selectedFilters.push(checkbox.nextElementSibling.textContent.trim());
                    }
                });
                
                // 这里可以添加实际筛选逻辑
                console.log('应用筛选条件:', selectedFilters);
                
                // 显示一个简单的提示
                alert(`已应用 ${selectedFilters.length} 个筛选条件`);
            });
            
            // 点赞功能
            const likeBtns = document.querySelectorAll('.action-btn:has(.fa-thumbs-up)');
            
            likeBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    
                    // 更新点赞数
                    const likeCount = this.querySelector('span');
                    if (this.classList.contains('liked')) {
                        // 如果之前没有点赞
                        if (likeCount.textContent === '点赞') {
                            likeCount.textContent = '1';
                        } else {
                            likeCount.textContent = (parseInt(likeCount.textContent) + 1).toString();
                        }
                    } else {
                        // 如果之前有点赞
                        const count = parseInt(likeCount.textContent);
                        if (count <= 1) {
                            likeCount.textContent = '点赞';
                        } else {
                            likeCount.textContent = (count - 1).toString();
                        }
                    }
                });
            });
            
            // 收藏功能
            const saveBtns = document.querySelectorAll('.action-btn:has(.fa-heart)');
            
            saveBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('saved');
                    
                    // 更新收藏文本
                    const saveText = this.querySelector('span');
                    if (this.classList.contains('saved')) {
                        saveText.textContent = '已收藏';
                    } else {
                        saveText.textContent = '收藏';
                    }
                });
            });
        });
    </script>
</body>
</html>
    
